<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>缓存清理</title>
	<link rel="icon" href="../../img/icon.png" type="image/x-icon"/>
	<link rel="stylesheet" type="text/css" href="../../css/mui.css"/>
	<link rel="stylesheet" type="text/css" href="../../css/mui.min.css"/>
	<link rel="stylesheet" type="text/css" href="../../css/app.css"/>
</head>
<body>
<!-- 顶部菜单 -->
<ul id="top">
	<!-- <li class="addBug back" onclick="mui.back();">返回</li> -->
	<li class="addBug back" onclick="jumpToMy()">返回</li>
	<li class="addBug">缓存清理</li>
	<li class="addBug pub">&nbsp;</li>
</ul>
<!-- 主体 -->
<div style="height: 50px;"></div>
<ul class="mui-table-view" id="datalist">
    <li class="mui-table-view-cell" onclick="clear(1)">
        <a class="mui-navigate-right">清除登陆信息</a>
    </li>
    <li class="mui-table-view-cell" onclick="clear(2)">
        <a class="mui-navigate-right">清除项目信息</a>
    </li>
    <li class="mui-table-view-cell" onclick="clear(3)">
        <a class="mui-navigate-right">清除版本信息</a>
    </li>
</ul>
<div style="height: 50px;"></div>
<!-- 底部菜单 -->
<ul id="foot">
	<li class="noclick" onclick="jumpToIndex()">BUG</li>
	<li class="noclick" onclick="jumpToHistory()">历史</li>
	<li class="noclick" onclick="jumpToMore()">更多</li>
	<li onclick="jumpToMy()">我的</li>
</ul>
</body>
</html>


<script type="text/javascript" src="../../js/mui.min.js"></script>
<script type="text/javascript" src="../../js/app.js"></script>
<script type="text/javascript">
	// var domain = getDomain();
	// (function($, owner) {
	// }(mui, window.app = {}));
	//清理对应缓存
	function clear(k){
		console.log(k); return
		if (k==1) {   //adminTokenKey,adminInfoKey
			cacheDel(adminTokenKey);
			cacheDel(adminInfoKey); 
			mui.toast('清理成功！',{
				duration:'long', type:'div',
			});
		} else if (k==2) {  //proInfoKey
			cacheDel(proInfoKey);
			mui.toast('清理成功！',{
				duration:'long', type:'div',
			});
		} else if (k==3) {  //appVersionKey
			cacheDel(appVersionKey);
			mui.toast('清理成功！',{
				duration:'long', type:'div',
			});
		} else {  
			mui.toast('没有缓存！',{
				duration:'long', type:'div',
			});
		}
	}
</script>